package cn.chengpengper.seckill.goods.application.command;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author chengpeng.hu
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SeckillGoodsCommand implements Serializable {

    private static final long serialVersionUID = -1955163255474604216L;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 秒杀活动id
     */
    private Long activityId;

    /**
     * 商品原价
     */
    private BigDecimal originalPrice;

    /**
     * 秒杀活动价格
     */
    private BigDecimal activityPrice;

    /**
     * 初始库存
     */
    private Integer initialStock;

    /**
     * 限购个数
     */
    private Integer limitNum;

    /**
     * 描述
     */
    private String description;

    /**
     * 图片
     */
    private String imgUrl;

    /**
     * 版本
     */
    private Long version;

}
